package pers.smalltown.authorize.wechat;

import java.util.concurrent.ConcurrentHashMap;

public class WxGlobalData {
	private static ConcurrentHashMap<String, Object> wxOpenIdCache = new ConcurrentHashMap<String, Object>();
	private static ConcurrentHashMap<String, String> wxAuthCodeCache = new ConcurrentHashMap<String, String>();
	public static Object getWxOpenIdCache(String key) {
		return wxOpenIdCache.get(key);
	}

	public static void setWxOpenIdCache(String key, Object value) {
		wxOpenIdCache.put(key, value);
	}


	public static String getWxAuthCodeCache(String authCode) {
		return wxAuthCodeCache.get(authCode);
	}

	public static void setWxAuthCodeCache(String authCode, String openId) {
		wxAuthCodeCache.put(authCode, openId);
	}
	
	
}
